package com.onec.service.channel.service;

import com.onec.service.api.dto.request.channel.ChannelTradeReq;
import com.onec.service.api.dto.response.channel.ChannelTradeResp;
import com.onec.service.channel.entity.ChannelInfo;
import com.onec.service.channel.entity.ChannelOrderDetail;

public interface ChannelOrderDetailService {

    /**
     * @param channelTradeReq
     * @param channelInfo
     * @return
     */
    ChannelOrderDetail createChannelOrderDetail(ChannelTradeReq channelTradeReq, ChannelInfo channelInfo);

    /**
     * @param channelTradeResp
     * @return
     */
    ChannelOrderDetail updateChannelOrderDetail(ChannelTradeResp channelTradeResp);

    /**
     * @param tradeNum
     * @return
     */
    ChannelOrderDetail findByTradeNum(String tradeNum);

    /**
     * @param serialNum
     * @return
     */
    ChannelOrderDetail findBySerialNum(String serialNum);

}
